package com.example.hbase.entity;

import com.example.hbase.annotation.HBaseColumn;
import com.example.hbase.annotation.HBaseRowKey;
import com.example.hbase.annotation.HBaseTable;
import com.example.hbase.constant.UserConstant;
import lombok.Data;

import java.util.List;

/**
 * @author void
 * @date 2021/8/11 16:30
 * @desc
 */
@Data
@HBaseTable(defaultFamily = UserConstant.COLUMN_FAMILY)
public class User {
    /**
     * 标识RowKey
     */
    @HBaseRowKey
    private String rowKey;
    @HBaseColumn(qualifier = "name")
    private String name;
    @HBaseColumn(qualifier = "age")
    private String age;
    @HBaseColumn(qualifier = "sex")
    private Integer sex;
    @HBaseColumn(qualifier = "address")
    private String address;
    @HBaseColumn(qualifier = "lon")
    private Double lon;
    @HBaseColumn(qualifier = "lat")
    private Double lat;
    @HBaseColumn(qualifier = "amount")
    private Float amount;
    @HBaseColumn(qualifier = "loginNum")
    private Long loginNum;
    @HBaseColumn(qualifier = "stopStatus")
    private Boolean stopStatus;
    @HBaseColumn(qualifier = "likeTags")
    private List<Integer> likeTags;
    @HBaseColumn(qualifier = "remarks")
    private List<String> remarks;
}
